package com.rg1906.service.impl;

import java.sql.SQLException;
import java.util.List;

import com.rg1906.dao.Impl.StudentManageDaoImpl;
import com.rg1906.entity.StudentManage;

public class StudentManageServiceImpl {
	StudentManageDaoImpl dao=new StudentManageDaoImpl();

	public List<StudentManage> QueryStudent(String pageNumber, String pageSize, String likeName, String studentNum, String gradeName, String gradeClazz) throws SQLException {
		int pageNumberInt = Integer.parseInt(pageNumber);
		int pageSizeInt = Integer.parseInt(pageSize);
		return dao.QueryStudent(pageNumberInt,pageSizeInt,likeName,studentNum,gradeName,gradeClazz);
		
	}

	public Long getTotal(String likeName, String studentNum, String gradeClazz, String gradeName) throws SQLException {
		return dao.getTotal(likeName,studentNum,gradeClazz,gradeName);
	}
}
